using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Data.Common;

namespace NBusiness.Data
{
    public class FetchEventArgs : CancelEventArgs
    {
        private DbConnection _connection;

        public DbConnection Connection
        {
            get { return _connection; }
        }
        private CriteriaBase _criteria;

        public CriteriaBase Criteria
        {
            get { return _criteria; }
        }

        public FetchEventArgs(DbConnection connection, CriteriaBase criteria)
        {
            _connection = connection;
            _criteria = criteria;
        }
    }
}
